package com.qiantu.api.entity;

import com.hjq.http.annotation.HttpIgnore;

import java.util.List;

public class ScanWirelessControllerBean {

    private List<MasterController> masterControllers;
    private String name;
    private String imageUrl;
    private String productModel;
    private String deviceSn;
    private String gatewayId;
    private boolean isDisable;
    private String codeNo;
    private List<DeviceItem> deviceItems;
    //0未添加 1添加中 2添加成功 3添加失败
    @HttpIgnore
    private int addStatus;

    public ScanWirelessControllerBean() {

    }

    public ScanWirelessControllerBean(ScanWirelessControllerBean data) {
        this.masterControllers = data.getMasterControllers();
        this.name = data.getName();
        this.imageUrl = data.getImageUrl();
        this.productModel = data.getProductModel();
        this.deviceSn = data.getDeviceSn();
        this.gatewayId = data.getGatewayId();
        this.isDisable = data.isIsDisable();
        this.codeNo = data.getCodeNo();
        this.deviceItems = data.getDeviceItems();
        this.addStatus = data.getAddStatus();
    }

    public List<MasterController> getMasterControllers() {
        return masterControllers;
    }

    public void setMasterControllers(List<MasterController> masterControllers) {
        this.masterControllers = masterControllers;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getProductModel() {
        return productModel;
    }

    public void setProductModel(String productModel) {
        this.productModel = productModel;
    }

    public String getDeviceSn() {
        return deviceSn;
    }

    public void setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn;
    }

    public String getGatewayId() {
        return gatewayId;
    }

    public void setGatewayId(String gatewayId) {
        this.gatewayId = gatewayId;
    }

    public boolean isIsDisable() {
        return isDisable;
    }

    public void setIsDisable(boolean isDisable) {
        this.isDisable = isDisable;
    }

    public String getCodeNo() {
        return codeNo;
    }

    public void setCodeNo(String codeNo) {
        this.codeNo = codeNo;
    }

    public List<DeviceItem> getDeviceItems() {
        return deviceItems;
    }

    public void setDeviceItems(List<DeviceItem> deviceItems) {
        this.deviceItems = deviceItems;
    }

    public int getAddStatus() {
        return addStatus;
    }

    public void setAddStatus(int addStatus) {
        this.addStatus = addStatus;
    }

    public static class MasterController {
        private String controllerSerialNo;
        private String name;
        private String productModel;
        private String codeNo;

        public String getControllerSerialNo() {
            return controllerSerialNo;
        }

        public void setControllerSerialNo(String controllerSerialNo) {
            this.controllerSerialNo = controllerSerialNo;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getProductModel() {
            return productModel;
        }

        public void setProductModel(String productModel) {
            this.productModel = productModel;
        }

        public String getCodeNo() {
            return codeNo;
        }

        public void setCodeNo(String codeNo) {
            this.codeNo = codeNo;
        }
    }

    public static class DeviceItem {
        private String deviceSn;
        private int pos;
        private int sort;
        private String deviceType;
        private String name;
        private boolean isFavourite;
        private String imageUrl;
        private boolean isDisable;
        private boolean isSwitch;
        private int linkType;
        private String roomSerialNo;
        private boolean isHomePage;

        public String getDeviceSn() {
            return deviceSn;
        }

        public void setDeviceSn(String deviceSn) {
            this.deviceSn = deviceSn;
        }

        public int getPos() {
            return pos;
        }

        public void setPos(int pos) {
            this.pos = pos;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public String getDeviceType() {
            return deviceType;
        }

        public void setDeviceType(String deviceType) {
            this.deviceType = deviceType;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public boolean isIsFavourite() {
            return isFavourite;
        }

        public void setIsFavourite(boolean isFavourite) {
            this.isFavourite = isFavourite;
        }

        public String getImageUrl() {
            return imageUrl;
        }

        public void setImageUrl(String imageUrl) {
            this.imageUrl = imageUrl;
        }

        public boolean isIsDisable() {
            return isDisable;
        }

        public void setIsDisable(boolean isDisable) {
            this.isDisable = isDisable;
        }

        public boolean isIsSwitch() {
            return isSwitch;
        }

        public void setIsSwitch(boolean isSwitch) {
            this.isSwitch = isSwitch;
        }

        public int getLinkType() {
            return linkType;
        }

        public void setLinkType(int linkType) {
            this.linkType = linkType;
        }

        public String getRoomSerialNo() {
            return roomSerialNo;
        }

        public void setRoomSerialNo(String roomSerialNo) {
            this.roomSerialNo = roomSerialNo;
        }

        public boolean isIsHomePage() {
            return isHomePage;
        }

        public void setIsHomePage(boolean isHomePage) {
            this.isHomePage = isHomePage;
        }
    }
}
